Hi.
I know you can hide you password (in your .exe) with XOR encryption, but I have a question. I found out another simple way to hide it but I've never seen it before (I haven't really searched for it) so I quess it wont work. So my question is: Why doesn't this code work to hide the password, the password is hello and if I open my .exe with notepad, I can't find the string 'hello'.
PHP Code:
#include <iostream>
using namespace std;
int main()
{
int Password [ 4 ];
Password [ 0 ] = 104;
Password [ 1 ] = 101;
Password [ 2 ] = 108;
Password [ 3 ] = 108;
Password [ 4 ] = 111;
char Transfer [ 4 ];
Transfer [ 0 ] = Password [ 0 ];
Transfer [ 1 ] = Password [ 1 ];
Transfer [ 2 ] = Password [ 2 ];
Transfer [ 3 ] = Password [ 3 ];
Transfer [ 4 ] = Password [ 4 ];
string Pass = Transfer,
Input;
cout << "Input Password: ";
cin >> Input;
if ( Input == Pass )
{
cout << "Correct";
}
else
{
cout << "Wrong";
}
cin.ignore();
cin.get();
}